< previous page page_466 next page >

Page 466
9f31265bb40b592b1929e18a47ab28e5.gif
Private Sub cboStates_Click()
   If cboStates.Tag <> cboStates.Text Then
      cmdSave.Enabled = True
      cboStates.Tag = cboStates.Text
   End If
End Sub
This solves the problem of the user just clicking to open the list but not actually changing the value in the combo box.
The DataFormat Property
If you want to format the data coming from a data control, you can use the new DataFormat property on the text boxes. When you click the DataFormat property, a dialog box appears that allows you to choose what type of formatting you want to apply to the data. (See Figures 23.4 and 23.5 for examples of two of these formatting options.)
Examples Filename: DataFormat.frm
8160-0466a.gif
Figure 23.4
The 
DataFormat propertys currency formats.
When you choose the currency format, you can change the number of decimal places, the symbol type to use, and how to display negative numbers.

 
< previous page page_466 next page >

If you like this book, buy it!